/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.excesys.exsecs.energy.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 电表清零表
 *
 * @author pig code generator
 * @date 2023-12-22 16:39:46
 */
@Data
@TableName("bum_ammeter_reset")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "电表清零表")
public class AmmeterReset extends Model<AmmeterReset> {

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @Schema(description ="主键")
    private Long id;

    /**
     * 设备位置编码
     */
    @Schema(description ="设备位置编码")
    private String unitNo;

	/**
	 * 设备名称
	 */
	@Schema(description ="设备名称")
	@TableField(exist = false)
	private String unitName;

    /**
     * 设备编码
     */
    @Schema(description ="设备编码")
    private String deviceNo;

    /**
     * 清零或更换电表前的总数
     */
    @Schema(description ="清零或更换电表前的总数")
    private Float totalValueBefore;

    /**
     * 清零或更换电表后的起始总数
     */
    @Schema(description ="清零或更换电表后的起始总数")
    private Float totalValueAfter;

    /**
     * 此次清零应加入计算的数值
     */
    @Schema(description ="此次清零应加入计算的数值")
    private Float totalValue;

    /**
     * 清零次数
     */
    @Schema(description ="清零次数")
    private Integer clearTimes;

    /**
     * 清零时间
     */
    @Schema(description ="清零时间")
    private LocalDateTime clearTime;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description="创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新时间")
    private LocalDateTime updateTime;


}
